package com.gxar.file.server.base.model.file.mapper;

import com.gxar.file.api.response.FileInfoResponse;
import com.gxar.file.server.db.model.FileEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author Linsy
 * @version 1.0
 * @created 2023/7/8 10:45 AM
 */
@Mapper
public interface FileMapStruct {
    FileMapStruct INSTANCE = Mappers.getMapper(FileMapStruct.class);

    /**
     * 文件实体转换成文件信息响应
     *
     * @param fileEntity 文件实体
     * @return 文件信息
     */
    FileInfoResponse entityToFileInfoResponse(FileEntity fileEntity);
}
